package com.yanqu.road.entity.activity.washe.data;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.rank.xrank.XSeasonUserRank;

import java.util.concurrent.ConcurrentHashMap;

@FieldTypeAnnotation(tableName = "t_u_washe_history_rank")
public class WasheHistoryRank extends DataObject {

    @FieldTypeAnnotation(desc = "赛季ID", select = true, update = true)
    private int seasonId;

    @FieldTypeAnnotation(desc = "玩家排名")
    private ConcurrentHashMap<Long, Integer> userRankMap = new ConcurrentHashMap<>();

    @FieldTypeAnnotation(desc = "第一名玩家")
    private XSeasonUserRank topRank = null; // 可能为null

    @FieldTypeAnnotation(desc = "是否自动发奖，1已发奖")
    private boolean autoSendReward;

    @FieldTypeAnnotation(desc = "榜单类型  2 赛季冲榜（默认）， 6积分赛榜单， 7巅峰赛榜单")
    private int rankType = 2;

    public int getSeasonId() {
        return seasonId;
    }

    public void setSeasonId(int seasonId) {
        this.seasonId = seasonId;
    }

    public ConcurrentHashMap<Long, Integer> getUserRankMap() {
        return userRankMap;
    }

    public void setUserRankMap(ConcurrentHashMap<Long, Integer> userRankMap) {
        this.userRankMap = userRankMap;
    }

    public XSeasonUserRank getTopRank() {
        return topRank;
    }

    public void setTopRank(XSeasonUserRank topRank) {
        this.topRank = topRank;
    }

    public boolean isAutoSendReward() {
        return autoSendReward;
    }

    public void setAutoSendReward(boolean autoSendReward) {
        this.autoSendReward = autoSendReward;
    }

    public int getRankType() {
        return rankType;
    }

    public void setRankType(int rankType) {
        this.rankType = rankType;
    }
}
